import axios from '../axios'
import { USERS } from '../../http/consts'
export default {
    login(data) {
        return axios({
            url: USERS + '/login',
            method: 'post',
            data
        })
    },
    register(data) {
        return axios({
            url: USERS + '/register',
            method: 'post',
            data
        })
    }
}